package com.enlorenz.common.bank;

import com.enlorenz.core.enu.EnumUtils;

/**
 * 银行卡信息
 * @author Karma
 */
public class BankCardInfo {
	//联行号
	private String uniCode;
	//银行代码
	private String bankCode;
	//银行名
	private String bankName;
	//卡名
	private String cardName;
	//卡号前缀
	private String prefix;
	
	private BankCardTypeEnum bankCardTypeEnum;
	
	public BankCardTypeEnum getBankCardTypeEnum() {
		return bankCardTypeEnum;
	}
	public void setBankCardTypeEnum(BankCardTypeEnum bankCardTypeEnum) {
		this.bankCardTypeEnum = bankCardTypeEnum;
	}
	public String getCardType() {
		if(null == bankCardTypeEnum){
			return null;
		}
		return (String)bankCardTypeEnum.getValue();
	}
	public void setCardType(String cardType) {
		bankCardTypeEnum=(BankCardTypeEnum)
				EnumUtils.locateEnumStatus(cardType,
						BankCardTypeEnum.class);
	}
	
	public String getUniCode() {
		return uniCode;
	}
	public void setUniCode(String uniCode) {
		this.uniCode = uniCode;
	}
	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	public String getBankCode() {
		return bankCode;
	}
	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}
	public String getCardName() {
		return cardName;
	}
	public void setCardName(String cardName) {
		this.cardName = cardName;
	}
	public String getPrefix() {
		return prefix;
	}
	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}
	
}
